Chatbot Message Manager
Manages the flow of messages (sending and generating bot replies) and the logic for different activities in the chatbot.
This class is responsible for maintaining the list of all messages, handling different branches (like Smart Goal, Thought Record, etc.), and simulating bot responses based on the user's input.
Parameters
A function that adds the current branch log to the main log list.
A function that adds the current branch log with a date to the main log list.
Constructors
Functions
Adds a new message to the total message list by taking a ChatMessage object.
Returns a list of all available branches for the chatbot.
Sends the selected completion date to the chatbot manager.
Simulates the bot's response to the user's input. This introduces a small delay before the bot replies to make the interaction feel more natural.